  <% if @user.friends.empty? %>
    <p><%= @user.name %> has not made any connections on pronetos</p>
  <% else %>
    <table class="friend-list" border="0">
      <% @user.friends.in_groups_of(5, false) do |row| %>
        <tr>
          <% row.each do |friend| %>
            <td>
              <%= avatar_for(friend) %>
              <br />
              <%= link_to friend.name, profile_url(friend.login) %>
            </td>
          <% end %>
        </tr>
      <% end %>
    </table>
  <% end %>
